#!/bin/bash

RTK=/dev/ttyACM3
IMU=/dev/ttyUSB0

RTK_fake=/tmp/RTK
IMU_fake=/tmp/IMU

echo "RTK $RTK -> $RTK_fake"
echo "IMU $IMU -> $IMU_fake"

cd serialLog/build

echo "./serial_logger 115200 $RTK log/RTK.log $RTK_fake"
echo "./serial_logger 921600 $IMU log/IMU.log $IMU_fake"

./serial_logger2 115200 $RTK log/RTK.log $RTK_fake  921600 $IMU log/IMU.log $IMU_fake
